Optimal. Leaf size=31 \[ \frac {\tan (e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (1+n p)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {3740, 2687, 32}
\begin {gather*} \frac {\tan (e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (n p+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 32
Rule 2687
Rule 3740
Rubi steps
\begin {align*} \int \sec ^2(e+f x) \left (b (c \tan (e+f x))^n\right )^p \, dx &=\left ((c \tan (e+f x))^{-n p} \left (b (c \tan (e+f x))^n\right )^p\right ) \int \sec ^2(e+f x) (c \tan (e+f x))^{n p} \, dx\\ &=\frac {\left ((c \tan (e+f x))^{-n p} \left (b (c \tan (e+f x))^n\right )^p\right ) \text {Subst}\left (\int (c x)^{n p} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {\tan (e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (1+n p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 31, normalized size = 1.00 \begin {gather*} \frac {\tan (e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (1+n p)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 4.16, size = 10286, normalized size = 331.81
method | result | size |
risch | \(\text {Expression too large to display}\) | \(10286\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.32, size = 37, normalized size = 1.19 \begin {gather*} \frac {b^{p} c^{n p} {\left (\tan \left (f x + e\right )^{n}\right )}^{p} \tan \left (f x + e\right )}{{\left (n p + 1\right )} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.27, size = 53, normalized size = 1.71 \begin {gather*} \frac {e^{\left (n p \log \left (\frac {c \sin \left (f x + e\right )}{\cos \left (f x + e\right )}\right ) + p \log \left (b\right )\right )} \sin \left (f x + e\right )}{{\left (f n p + f\right )} \cos \left (f x + e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (b \left (c \tan {\left (e + f x \right )}\right )^{n}\right )^{p} \sec ^{2}{\left (e + f x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 13.29, size = 31, normalized size = 1.00 \begin {gather*} \frac {\mathrm {tan}\left (e+f\,x\right )\,{\left (b\,{\left (c\,\mathrm {tan}\left (e+f\,x\right )\right )}^n\right )}^p}{f\,\left (n\,p+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________